package com.bamboo.framework.framework.security.mapper;

import com.bamboo.framework.framework.security.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 郭晴
 * @since 2018-12-15
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

  /**
   * 根据用户id获取当前用户拥有的角色id集合
   * @param userId 用户id
   */
  List<Integer> selectRoleIdListByUserId( @Param(value = "userId") Integer userId);
}
